var db = require("./db")
var mongoose = require("mongoose")

var ObjectId = mongoose.Schema.Types.ObjectId;
var ShopSchema = new mongoose.Schema({
    name:String,
    icon:String,
    addr:String,
    school:String,
    notice:Array,
    user:{type:ObjectId,ref:'User'},
    info:String,
    open:Boolean
})



module.exports = db.model('Shop',ShopSchema)